<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Post和Get的测试</title>
</head>
<body>
   <!-- <form action = "/User/sayHi",method = "get">
        <input type="submit" value="提交">-->
   onLoad() {
   this.getList()
   },
   methods: {
   // onLoad() { // onLoad页面加载时调用
   getList(){
   uni.request({
   url:'http://localhost:9090/User/show',
   dataType:"json",
   success: (res) => {
   console.log(res.data);
   console.log(res.statusCode);
   for (let a=0;a<res.data.length;a++) {
        this.bb.push(res.data[a].name);
        this.bb.push(res.data[a].age);
        this.bb.push(res.data[a].gender);
        }

    }
        })
     }
    }
   }
    </form>
</body>
</html>